home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Include / Constants.au3 < prev    next >
Encoding:
Text File  |  2007-09-08  |  12.2 KB  |  271 lines

  1. #include-once
  2.  
  3. ; ------------------------------------------------------------------------------
  4. ;
  5. ; AutoIt Version: 3.2
  6. ; Author(s):      Jeremy Landes <jlandes at landeserve dot com>
  7. ;                 David Nuttall <danuttall at rocketmail dot com>
  8. ;                 Philip Gump   <cyberslug at autoitscript dot com>
  9. ;                 Holger Kotsch   <Holger dot Kotsch at GMX dot de>
  10. ;                 Dave...
  11. ; Description:    This file is meant to be included in an AutoIt v3 script to
  12. ;                 provide access to these constants.
  13. ;
  14. ; ------------------------------------------------------------------------------
  15.  
  16.  
  17. ;==============================================
  18. ; AutoIt Options Constants
  19. ;==============================================
  20. ; Sets the way coords are used in the mouse and pixel functions
  21. Global Const $OPT_COORDSRELATIVE   =    0 ; Relative coords to the active window
  22. Global Const $OPT_COORDSABSOLUTE   =    1 ; Absolute screen coordinates (default)
  23. Global Const $OPT_COORDSCLIENT     =    2 ; Relative coords to client area
  24.  
  25. ; Sets how errors are handled if a Run/RunWait function fails
  26. Global Const $OPT_ERRORSILENT      =    0 ; Silent error (@error set to 1)
  27. Global Const $OPT_ERRORFATAL       =    1 ; Fatal error (default)
  28.  
  29. ; Alters the use of Caps Lock 
  30. Global Const $OPT_CAPSNOSTORE      =    0 ; Don't store/restore Caps Lock state
  31. Global Const $OPT_CAPSSTORE        =    1 ; Store/restore Caps Lock state (default)
  32.  
  33. ; Alters the method that is used to match window titles
  34. Global Const $OPT_MATCHSTART       =    1 ; Match the title from the start (default)
  35. Global Const $OPT_MATCHANY         =    2 ; Match any substring in the title
  36. Global Const $OPT_MATCHEXACT       =    3 ; Match the title exactly
  37. Global Const $OPT_MATCHADVANCED    =    4 ; Use advanced window matching (deprecated)
  38.  
  39.  
  40. ;==============================================
  41. ; File Constants
  42. ;==============================================
  43. ; Indicates file copy and install options
  44. Global Const $FC_NOOVERWRITE       =    0 ; Do not overwrite existing files (default)
  45. Global Const $FC_OVERWRITE         =    1 ; Overwrite existing files
  46.  
  47. ; Indicates file date and time options
  48. Global Const $FT_MODIFIED          =    0 ; Date and time file was last modified (default)
  49. Global Const $FT_CREATED           =    1 ; Date and time file was created
  50. Global Const $FT_ACCESSED          =    2 ; Date and time file was last accessed
  51.  
  52. ; Indicates the mode to open a file
  53. Global Const $FO_READ              =    0   ; Read mode
  54. Global Const $FO_APPEND            =    1   ; Write mode (append)
  55. Global Const $FO_OVERWRITE         =    2   ; Write mode (erase previous contents)
  56. Global Const $FO_BINARY            =    16  ; Read/Write mode binary
  57. Global Const $FO_UNICODE           =    32  ; Write mode Unicode UTF16-LE
  58. Global Const $FO_UTF16_LE          =    32  ; Write mode Unicode UTF16-LE
  59. Global Const $FO_UTF16_BE          =    64  ; Write mode Unicode UTF16-BE
  60. Global Const $FO_UTF8              =    128 ; Write mode Unicode UTF8
  61.  
  62. ; Indicates file read options
  63. Global Const $EOF                  =   -1 ; End-of-file reached
  64.  
  65. ; Indicates file open and save dialog options
  66. Global Const $FD_FILEMUSTEXIST     =    1 ; File must exist
  67. Global Const $FD_PATHMUSTEXIST     =    2 ; Path must exist
  68. Global Const $FD_MULTISELECT       =    4 ; Allow multi-select
  69. Global Const $FD_PROMPTCREATENEW   =    8 ; Prompt to create new file
  70. Global Const $FD_PROMPTOVERWRITE   =   16 ; Prompt to overWrite file
  71.  
  72.  
  73. ;==============================================
  74. ; Keyboard Constants
  75. ;==============================================
  76. ; Changes how keys are processed
  77. Global Const $KB_SENDSPECIAL       =    0 ; Special characters indicate key presses (default)
  78. Global Const $KB_SENDRAW           =    1 ; Keys are sent raw
  79.  
  80. ; Sets the state of the Caps Lock key
  81. Global Const $KB_CAPSOFF           =    0 ; Caps Lock is off
  82. Global Const $KB_CAPSON            =    1 ; Caps Lock is on
  83.  
  84.  
  85. ;==============================================
  86. ; Message Box Constants
  87. ;==============================================
  88. ; Indicates the buttons displayed in the message box
  89. Global Const $MB_OK                =    0 ; One push button: OK
  90. Global Const $MB_OKCANCEL          =    1 ; Two push buttons: OK and Cancel
  91. Global Const $MB_ABORTRETRYIGNORE  =    2 ; Three push buttons: Abort, Retry, and Ignore
  92. Global Const $MB_YESNOCANCEL       =    3 ; Three push buttons: Yes, No, and Cancel
  93. Global Const $MB_YESNO             =    4 ; Two push buttons: Yes and No
  94. Global Const $MB_RETRYCANCEL       =    5 ; Two push buttons: Retry and Cancel
  95.  
  96. ; Displays an icon in the message box
  97. Global Const $MB_ICONHAND          =   16 ; Stop-sign icon
  98. Global Const $MB_ICONQUESTION      =   32 ; Question-mark icon
  99. Global Const $MB_ICONEXCLAMATION   =   48 ; Exclamation-point icon
  100. Global Const $MB_ICONASTERISK      =   64 ; Icon consisting of an 'i' in a circle
  101.  
  102. ; Indicates the default button
  103. Global Const $MB_DEFBUTTON1        =    0 ; The first button is the default button
  104. Global Const $MB_DEFBUTTON2        =  256 ; The second button is the default button
  105. Global Const $MB_DEFBUTTON3        =  512 ; The third button is the default button
  106.  
  107. ; Indicates the modality of the dialog box
  108. Global Const $MB_APPLMODAL         =    0 ; Application modal
  109. Global Const $MB_SYSTEMMODAL       = 4096 ; System modal
  110. Global Const $MB_TASKMODAL         = 8192 ; Task modal
  111.  
  112. ; Indicates miscellaneous message box attributes
  113. Global Const $MB_TOPMOST            = 262144 ; top-most attribute
  114. Global Const $MB_RIGHTJUSTIFIED     = 524288 ; right-justified title and text
  115.  
  116. ; Indicates the button selected in the message box
  117. Global Const $IDTIMEOUT            =   -1 ; The message box timed out
  118. Global Const $IDOK                 =    1 ; OK button was selected
  119. Global Const $IDCANCEL             =    2 ; Cancel button was selected
  120. Global Const $IDABORT              =    3 ; Abort button was selected
  121. Global Const $IDRETRY              =    4 ; Retry button was selected
  122. Global Const $IDIGNORE             =    5 ; Ignore button was selected
  123. Global Const $IDYES                =    6 ; Yes button was selected
  124. Global Const $IDNO                 =    7 ; No button was selected
  125. Global Const $IDTRYAGAIN           =   10 ; Try Again button was selected
  126. Global Const $IDCONTINUE           =   11 ; Continue button was selected
  127.  
  128.  
  129. ;==============================================
  130. ; Progress and Splash Constants
  131. ;==============================================
  132. ; Indicates properties of the displayed progress or splash dialog
  133. Global Const $DLG_NOTITLE          =    1 ; Titleless window
  134. Global Const $DLG_NOTONTOP         =    2 ; Without "always on top" attribute
  135. Global Const $DLG_TEXTLEFT         =    4 ; Left justified text
  136. Global Const $DLG_TEXTRIGHT        =    8 ; Right justified text
  137. Global Const $DLG_MOVEABLE         =   16 ; Window can be moved
  138.  
  139. Global Const $DLG_TEXTVCENTER      =   32 ; Splash text centered vertically
  140.  
  141.  
  142. ;==============================================
  143. ; Tray Tip Constants
  144. ;==============================================
  145. ; Indicates the type of Balloon Tip to display
  146. Global Const $TIP_ICONNONE         =    0 ; No icon (default)
  147. Global Const $TIP_ICONASTERISK     =    1 ; Info icon
  148. Global Const $TIP_ICONEXCLAMATION  =    2 ; Warning icon
  149. Global Const $TIP_ICONHAND         =    3 ; Error icon
  150. Global Const $TIP_NOSOUND          =   16 ; No sound
  151.  
  152.  
  153. ;==============================================
  154. ; Mouse Constants
  155. ;==============================================
  156. ; Indicates current mouse cursor
  157. Global Const $IDC_UNKNOWN          =    0 ; Unknown cursor
  158. Global Const $IDC_APPSTARTING      =    1 ; Standard arrow and small hourglass
  159. Global Const $IDC_ARROW            =    2 ; Standard arrow
  160. Global Const $IDC_CROSS            =    3 ; Crosshair
  161. Global Const $IDC_HELP             =    4 ; Arrow and question mark
  162. Global Const $IDC_IBEAM            =    5 ; I-beam
  163. Global Const $IDC_ICON             =    6 ; Obsolete
  164. Global Const $IDC_NO               =    7 ; Slashed circle
  165. Global Const $IDC_SIZE             =    8 ; Obsolete
  166. Global Const $IDC_SIZEALL          =    9 ; Four-pointed arrow pointing N, S, E, and W
  167. Global Const $IDC_SIZENESW         =   10 ; Double-pointed arrow pointing NE and SW
  168. Global Const $IDC_SIZENS           =   11 ; Double-pointed arrow pointing N and S
  169. Global Const $IDC_SIZENWSE         =   12 ; Double-pointed arrow pointing NW and SE
  170. Global Const $IDC_SIZEWE           =   13 ; Double-pointed arrow pointing W and E
  171. Global Const $IDC_UPARROW          =   14 ; Vertical arrow
  172. Global Const $IDC_WAIT             =   15 ; Hourglass
  173.  
  174.  
  175. ;==============================================
  176. ; Process Constants
  177. ;==============================================
  178. ; Indicates the type of shutdown
  179. Global Const $SD_LOGOFF            =    0 ; Logoff
  180. Global Const $SD_SHUTDOWN          =    1 ; Shutdown
  181. Global Const $SD_REBOOT            =    2 ; Reboot
  182. Global Const $SD_FORCE             =    4 ; Force
  183. Global Const $SD_POWERDOWN         =    8 ; Power down
  184.  
  185.  
  186. ;==============================================
  187. ; String Constants
  188. ;==============================================
  189. ; Indicates if string operations should be case sensitive
  190. Global Const $STR_NOCASESENSE      =    0 ; Not case sensitive (default)
  191. Global Const $STR_CASESENSE        =    1 ; Case sensitive
  192.  
  193. ; IndicateS the type of stripping that should be performed
  194. Global Const $STR_STRIPLEADING     =    1 ; Strip leading whitespace
  195. Global Const $STR_STRIPTRAILING    =    2 ; Strip trailing whitespace
  196. Global Const $STR_STRIPSPACES      =    4 ; Strip double (or more) spaces between words
  197. Global Const $STR_STRIPALL         =    8 ; Strip all spaces (over-rides all other flags)
  198.  
  199.  
  200. ;==============================================
  201. ; Tray Constants
  202. ;==============================================
  203. ; Tray predefined ID's
  204. Global Const $TRAY_ITEM_EXIT            = 3
  205. Global Const $TRAY_ITEM_PAUSE            = 4
  206. Global Const $TRAY_ITEM_FIRST            = 7
  207.  
  208. ; Tray menu/item state values
  209. Global Const $TRAY_CHECKED                = 1
  210. Global Const $TRAY_UNCHECKED            = 4
  211. Global Const $TRAY_ENABLE                = 64
  212. Global Const $TRAY_DISABLE                = 128
  213. Global Const $TRAY_FOCUS                = 256
  214. Global Const $TRAY_DEFAULT                = 512
  215.  
  216. ; Tray event values
  217. Global Const $TRAY_EVENT_SHOWICON        = -3
  218. Global Const $TRAY_EVENT_HIDEICON        = -4
  219. Global Const $TRAY_EVENT_FLASHICON        = -5
  220. Global Const $TRAY_EVENT_NOFLASHICON    = -6
  221. Global Const $TRAY_EVENT_PRIMARYDOWN    = -7
  222. Global Const $TRAY_EVENT_PRIMARYUP        = -8
  223. Global Const $TRAY_EVENT_SECONDARYDOWN    = -9
  224. Global Const $TRAY_EVENT_SECONDARYUP    = -10
  225. Global Const $TRAY_EVENT_MOUSEOVER        = -11
  226. Global Const $TRAY_EVENT_MOUSEOUT        = -12
  227. Global Const $TRAY_EVENT_PRIMARYDOUBLE    = -13
  228. Global Const $TRAY_EVENT_SECONDARYDOUBLE= -14
  229.  
  230. ;==============================================
  231. ; STDIO Constants
  232. ;==============================================
  233. Global Const $STDIN_CHILD    = 1
  234. Global Const $STDOUT_CHILD    = 2
  235. Global Const $STDERR_CHILD    = 4
  236.  
  237. ;==============================================
  238. ; Colour Constants
  239. ;==============================================
  240. Global Const $COLOR_BLACK   = 0x000000
  241. Global Const $COLOR_SILVER  = 0xC0C0C0
  242. Global Const $COLOR_GRAY    = 0x808080
  243. Global Const $COLOR_WHITE   = 0xFFFFFF
  244. Global Const $COLOR_MAROON  = 0x800000
  245. Global Const $COLOR_RED     = 0xFF0000
  246. Global Const $COLOR_PURPLE  = 0x800080
  247. Global Const $COLOR_FUCHSIA = 0xFF00FF
  248. Global Const $COLOR_GREEN   = 0x008000
  249. Global Const $COLOR_LIME    = 0x00FF00
  250. Global Const $COLOR_OLIVE   = 0x808000
  251. Global Const $COLOR_YELLOW  = 0xFFFF00
  252. Global Const $COLOR_NAVY    = 0x000080
  253. Global Const $COLOR_BLUE    = 0x0000FF
  254. Global Const $COLOR_TEAL    = 0x008080
  255. Global Const $COLOR_AQUA    = 0x00FFFF
  256.  
  257. ;==============================================
  258. ; Reg Value type Constants
  259. ;==============================================
  260. Global Const $REG_NONE                            = 0
  261. Global Const $REG_SZ                            = 1
  262. Global Const $REG_EXPAND_SZ                        = 2
  263. Global Const $REG_BINARY                        = 3
  264. Global Const $REG_DWORD                            = 4
  265. Global Const $REG_DWORD_BIG_ENDIAN                = 5
  266. Global Const $REG_LINK                            = 6
  267. Global Const $REG_MULTI_SZ                        = 7
  268. Global Const $REG_RESOURCE_LIST                    = 8
  269. Global Const $REG_FULL_RESOURCE_DESCRIPTOR        = 9
  270. Global Const $REG_RESOURCE_REQUIREMENTS_LIST    = 10
  271.